package cn.yunhe.entity;

import java.math.BigDecimal;
import java.util.Date;

public class Goods {
	//此属性是oracle内初始化属性，在mysql里注释掉了
	//private Integer rnum;
	private Integer id;
	private String gname;
	private String gdespriction;
	private BigDecimal gprice;
	private BigDecimal gnum;
	private Date gdate;
	private String filename;
	private String fileid;
	
	
	
	public Goods() {
		super();
	}
	
	

/*	public Goods(Integer rnum, Integer id, String gname, String gdespriction, BigDecimal gprice, BigDecimal gnum,
			Date gdate, String filename, String fileid) {
		super();
		this.rnum = rnum;
		this.id = id;
		this.gname = gname;
		this.gdespriction = gdespriction;
		this.gprice = gprice;
		this.gnum = gnum;
		this.gdate = gdate;
		this.filename = filename;
		this.fileid = fileid;
	}
*/


	public Goods(Integer id, String gname, String gdespriction, BigDecimal gprice, BigDecimal gnum, Date gdate) {
		super();
		this.id = id;
		this.gname = gname;
		this.gdespriction = gdespriction;
		this.gprice = gprice;
		this.gnum = gnum;
		this.gdate = gdate;
	}
	
	public Goods(Integer id, String gname, String gdespriction, BigDecimal gprice, BigDecimal gnum) {
		super();
		this.id = id;
		this.gname = gname;
		this.gdespriction = gdespriction;
		this.gprice = gprice;
		this.gnum = gnum;
	}



	public Goods(Integer id, String gname, String gdespriction, BigDecimal gprice, BigDecimal gnum, String filename,
			String fileid) {
		super();
		this.id = id;
		this.gname = gname;
		this.gdespriction = gdespriction;
		this.gprice = gprice;
		this.gnum = gnum;
		this.filename = filename;
		this.fileid = fileid;
	}



	public Goods(String gname, String gdespriction, BigDecimal gprice, BigDecimal gnum) {
		super();
		this.gname = gname;
		this.gdespriction = gdespriction;
		this.gprice = gprice;
		this.gnum = gnum;
	}



	public Goods(Integer id, String gname, String gdespriction, BigDecimal gprice, BigDecimal gnum, Date gdate,
			String filename, String fileid) {
		super();
		this.id = id;
		this.gname = gname;
		this.gdespriction = gdespriction;
		this.gprice = gprice;
		this.gnum = gnum;
		this.gdate = gdate;
		this.filename = filename;
		this.fileid = fileid;
	}
	

public Goods(String gname, String gdespriction, BigDecimal gprice, BigDecimal gnum, String filename,
			String fileid) {
		super();
		this.gname = gname;
		this.gdespriction = gdespriction;
		this.gprice = gprice;
		this.gnum = gnum;
		this.filename = filename;
		this.fileid = fileid;
	}



/*	public Integer getRnum() {
		return rnum;
	}



	public void setRnum(Integer rnum) {
		this.rnum = rnum;
	}
*/


	public String getFilename() {
		return filename;
	}
	public void setFilename(String filename) {
		this.filename = filename;
	}
	public String getFileid() {
		return fileid;
	}
	public void setFileid(String fileid) {
		this.fileid = fileid;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getGname() {
		return gname;
	}
	public void setGname(String gname) {
		this.gname = gname;
	}
	public String getGdespriction() {
		return gdespriction;
	}
	public void setGdespriction(String gdespriction) {
		this.gdespriction = gdespriction;
	}
	public BigDecimal getGprice() {
		return gprice;
	}
	public void setGprice(BigDecimal gprice) {
		this.gprice = gprice;
	}
	public BigDecimal getGnum() {
		return gnum;
	}
	public void setGnum(BigDecimal gnum) {
		this.gnum = gnum;
	}
	public Date getGdate() {
		return gdate;
	}
	public void setGdate(Date gdate) {
		this.gdate = gdate;
		
	}
	/*@Override
	public String toString() {
		
		return "rnum:"+rnum+"id:"+id+";gname:"+gname+";gdescription:"+gdespriction+";gprice:"+gprice+";gnum:"+gnum+";gdate:"+gdate+"filename:"
				+filename+"fileid:"+fileid;
	}*/
	@Override
	public String toString() {
		
		return "id:"+id+";gname:"+gname+";gdescription:"+gdespriction+";gprice:"+gprice+";gnum:"+gnum+";gdate:"+gdate+"filename:"
				+filename+"fileid:"+fileid;
	}
}
